/*
 *NOTE:Auto generated dao
*/
package com.surfilter.modules.impPos.dao;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.ibatis.sqlmap.client.SqlMapClient;
import com.surfilter.modules.impPos.model.HtPosImgModel;
import com.surfilter.platform.base.dao.DaoBase;
import com.surfilter.platform.base.model.PageInfo;

@Repository(value="Service_impPosHtPosImgDao")
public class HtPosImgDao extends DaoBase<HtPosImgModel>{

	@Resource(name = "surfilterSqlMapClient")
	private SqlMapClient sqlMapClient;

	public void initSqlMapClient() {
		this.setSqlMapClient(sqlMapClient);
	}
	
		public java.lang.Integer addHtPosImg(HtPosImgModel htPosImgModel) {
		java.lang.Integer key = (java.lang.Integer) this.addObject("addHtPosImg", htPosImgModel);
		return key;
	}
	
	public void chgHtPosImg(HtPosImgModel htPosImgModel) {
		this.updateObject("chgHtPosImg", htPosImgModel);
	}
	
	public void delHtPosImg(HtPosImgModel htPosImgModel) {
		this.updateObject("delHtPosImg", htPosImgModel);
	}

	public List<HtPosImgModel> getHtPosImgs(HtPosImgModel htPosImgModel, PageInfo pageInfo) {
		return this.getListByObjectForPage("getHtPosImgs", htPosImgModel, pageInfo);
	}
	
	public void delHtPosImgs(List<java.lang.Integer> ids){
		this.deleteObject("delHtPosImgs", ids);
	}
	
	public int getHtPosImgsCount(HtPosImgModel htPosImgModel) {
		return (Integer) this.getObjectByObject("getHtPosImgsCount", htPosImgModel);
	}
}
